<template>
	<div></div>
</template>

<script>
import { fetchIndustryJob } from '@/api/label.js'
export default {
	data() {
		return {
			manageInfo: JSON.parse(sessionStorage.getItem('manageInfo')) //登录信息
		}
	},
	mounted() {
		try {
			// this.manageInfo.menu.forEach(element => {
			// 	if (element.name == '数据快报') {
			// 		// 结束循环
			// 		this.$router.push({ path: '/dataExpress' })
			// 		throw new Error('EndIterative')
			// 	} else {
			// 		this.$router.push({ path: '/abnormal' })
			// 	}
			// })
			console.log(this.manageInfo)
			// this.$router.push({ path: '/dataExpress' })
			this.$router.push({ path: this.manageInfo.menu[0].child[0]['model'] })
			// console.log(this.manageInfo.menu[0].child[0]['model'])
			this.getIndustryJob()
		} catch (e) {
			if (e.message != 'EndIterative') throw e
		}
	},
	methods: {
		async getIndustryJob() {
			try {
				let ret = await fetchIndustryJob()
				localStorage.setItem('industryJobList', JSON.stringify(ret))
			} catch (err) {
				console.log(err)
			}
		}
	}
}
</script>

<style scoped></style>



// WEBPACK FOOTER //
// src/components/DataExpressUrl.vue